import numpy as np

a = np.arange(15)
print(a)
b = a.reshape(3,5)
print(b)
b = a.reshape(5,3)
print(b)

# 修改原数组的形状
a.resize(3,5)
print(a)